package cn.xshi.sys.service;

import cn.xshi.common.base.BaseResult;
import cn.xshi.sys.form.SysDataDictionaryForm;
import cn.xshi.sys.model.SysDataDictionary;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @Desc 数据字典
 * @Author 邓纯杰
 * @CreateTime 2012-12-12 12:12:12
 */
public interface SysDataDictionaryService {

	/**
	* 分页
	* @param sysDataDictionaryForm
	* @return
	*/
	List<SysDataDictionary> getSysDataDictionaryListByCondition(SysDataDictionaryForm sysDataDictionaryForm);

	/**
	 * 加载ListAll不分页
	 * @param condition
	 * @return
	 */
	List<SysDataDictionary> getSysDataDictionaryListAllByCondition(Map<String,Object> condition);

	/**
	* 查询对象
	* @param id
	* @return
	*/
	SysDataDictionary getSysDataDictionaryById(String id);

	/**
	* 添加
	* @param sysDataDictionary
	* @return
	*/
	int addSysDataDictionary(SysDataDictionary sysDataDictionary);

	/**
	* 修改
	* @param sysDataDictionary
	* @return
	*/
	int updateSysDataDictionary(SysDataDictionary sysDataDictionary);

	/**
	* 删除
	* @param condition 
	* @return
	*/
	int delSysDataDictionary(Map<String,Object> condition);

	/**
	 * 导出
	 * @param response
	 * @param id
	 */
	void exportDictionary(HttpServletResponse response, String id);

	/**
	 * 导入
	 * @param multipartFile
	 * @return
	 */
	BaseResult importDictionary(HttpServletRequest request, HttpServletResponse response, MultipartFile multipartFile);
}
